import { defineConfig } from "rollup";
import { nodeResolve } from "@rollup/plugin-node-resolve";
import commonjs from "@rollup/plugin-commonjs";
import json from "@rollup/plugin-json";

export default defineConfig({
  input: "src/vite-plugin-dist-zip.js",
  output: {
    file: "dist/vite-plugin-dist-zip.mjs",
    format: "esm",
  },
  plugins: [nodeResolve({ preferBuiltins: true }), commonjs(), json()],
  external: ["fs", "path"],
});
